/*
 * Copyright © 2017 Cask Data, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

@import '../../styles/variables.scss';

$border-color: #bbbbbb;

.program-table {
  overflow-x: auto;
  padding-top: 10px;

  table {
    border: 1px solid $border-color;

    tbody {
      font-size: 12px;
    }

    tr {
      th,
      td {
        border-left: 0;
        border-right: 0;
        border-top: 0;
        border-bottom: 1px solid $border-color;
        padding-top: 0;
        padding-bottom: 0;
        vertical-align: middle;
      }

      th {
        line-height: 30px;

        span {
          &:last-child {
            text-align: center;
          }
        }
      }

      td {
        line-height: 40px;

        svg.program-type-icon {
          margin-right: 5px;
        }

        &:first-child {
          max-width: 150px;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
        }

        &:last-child {
          min-width: 103px;
          padding-left: 0;
          padding-right: 0;
        }

        .fast-actions-container {
          h4 {
            margin: 0;
            > span {
              border: 0;
            }
          }
          .btn-link {
            color: #4f5050;
            margin-left: 5px;
            padding: 5px;
            border: 0;
            > span {
              vertical-align: top;
            }
          }
        }
      }
    }
  }
}
